package com.example.mybatisplusdemo.model.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yzy
 * @since 2025-07-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("email")
    private String email;

    @TableField("phone")
    private String phone;

        @ApiModelProperty(value = "用户偏好设置（JSON格式）")
    @TableField("preferences")
    private String preferences;

        @ApiModelProperty(value = "历史行程")
    @TableField("travel_history")
    private String travelHistory;

    @TableField("favorite_airports")
    private String favoriteAirports;

    @TableField("created_time")
    private LocalDateTime createdTime;

    @TableField("updated_time")
    private LocalDateTime updatedTime;

    @TableField("is_deleted")
    private Boolean deleted;

        @ApiModelProperty(value = "性别：male, female, unknown")
    @TableField("gender")
    private String gender;

        @ApiModelProperty(value = "年龄")
    @TableField("age")
    private Integer age;

        @ApiModelProperty(value = "偏好价格区间")
    @TableField("preferred_price_range")
    private String preferredPriceRange;

        @ApiModelProperty(value = "偏好出发时间：morning, afternoon, evening, night")
    @TableField("preferred_departure_time")
    private String preferredDepartureTime;

        @ApiModelProperty(value = "偏好航空公司")
    @TableField("preferred_airline")
    private String preferredAirline;

        @ApiModelProperty(value = "用户标签")
    @TableField("user_tags")
    private String userTags;


}
